package com.java2104.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

//类名首字母大写,如果有多个单词，后面的单词首字母大写
public class User {
    //属性首字母小写
    private Integer id;
    private String loginname;//登录名
    private String password;//密码
    private Integer role;//角色
    @JsonFormat(pattern = "yyyy年MM月dd日 HH:mm:ss",timezone = "GMT+8")
    private Timestamp createdate;//创建时间
    private String username;//姓名
    private String faceurl;
    private String facepath;

    public User() {
        faceurl = "";
        facepath = "";
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Timestamp getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Timestamp createdate) {
        this.createdate = createdate;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getFaceurl() {
        return faceurl;
    }

    public void setFaceurl(String faceurl) {
        this.faceurl = faceurl;
    }

    public String getFacepath() {
        return facepath;
    }

    public void setFacepath(String facepath) {
        this.facepath = facepath;
    }
}
